//
//  ReportProjectDetailModel.h
//  efairy
//
//  Created by 李锋 on 2019/3/18.
//  Copyright © 2019年 East. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YYModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface AlarmTimesInfoList : NSObject
@property(nonatomic,assign)NSInteger pt; // 参量类型
@property(nonatomic,strong)NSString *pt_name; // 参量名称
@property(nonatomic,assign)NSInteger times;// 次数
@property (nonatomic, readonly) NSString *ptDes;        //!< 对应的pt描述
@end

@interface AlarmPercentInfoList : NSObject
@property(nonatomic,assign)NSInteger pt;//参量类型
@property(nonatomic,strong)NSString *pt_name;//参量名称
@property(nonatomic,assign)CGFloat percent;//百分比，单位%
@property (nonatomic, readonly) NSString *ptDes;        //!< 对应的pt描述
@end

@interface StatisticsList : NSObject
@property(nonatomic,strong)NSString *efairydevice_device_type_id; // 设备类型编号
@property(nonatomic,strong)NSString *efairydevice_device_type; // 设备类型
@property(nonatomic,strong)NSString *total_devices; // 点位总数
@property(nonatomic,strong)NSString *total_alarm_devices; // 报警点位
@property(nonatomic,strong)NSString *total_early_warning_devices; // 预警点位
@property(nonatomic,strong)NSString *total_trouble_devices; // 故障点位
@end

@interface AlarmStatisticsList :    NSObject
@property(nonatomic,strong)NSString *efairydevice_device_type_id;// 设备类型编号
@property(nonatomic,strong)NSString *efairydevice_device_type;// 设备类型
@property(nonatomic,strong)NSMutableArray<AlarmPercentInfoList *>  *alarm_percent_info_list;
@property(nonatomic,strong)NSMutableArray<AlarmTimesInfoList *>  *alarm_times_info_list_t;
@property (nonatomic, readonly) NSArray<NSDictionary *> *pieData;//!< 画饼形图需要的数据
@property (nonatomic, readonly) NSArray<NSDictionary *> *columnData;//!< 画柱状图需要的数据


@end

@interface ProjectReportSummary : NSObject
@property(nonatomic,assign) NSInteger total_rows;// 总结条数
@property(nonatomic,strong)NSArray * report_summary_list;//总结
@end
@interface DeviceAlarmStatistics : NSObject
@property(nonatomic,assign) NSInteger total_rows;//// 设备类型总数
@property(nonatomic,strong)NSMutableArray<AlarmStatisticsList *> *device_alarm_statistics_list;
@end

@interface DeviceStatistics : NSObject
@property(nonatomic,strong)NSMutableArray<StatisticsList *> *device_statistics_list;
@property(nonatomic,assign) NSInteger total_rows; // 设备类型总数
@property(nonatomic,strong)NSString *otal_devices; // 总点位数
@property(nonatomic,strong)NSString *total_alarm_devices; // 总报警点位
@property(nonatomic,strong)NSString *total_early_warning_devices; // 总预警点位
@property(nonatomic,strong)NSString *total_trouble_devices; // 总故障数
@end

@interface ReportProjectDetailModel : NSObject<YYModel>
@property(nonatomic,strong) DeviceStatistics *efairyproject_device_statistics;//
@property(nonatomic,strong)NSString *efairyproject_id; // 项目编号
@property(nonatomic,strong)NSString *efairyproject_name; // 项目名称
@property(nonatomic,strong)NSString *efairyproject_user_name; // 项目负责人名字
@property(nonatomic,strong)NSString *efairyproject_user_phonenumber; // 项目负责人电话
@property(nonatomic,assign)NSInteger efairyproject_security_score; // 项目安全评分
@property(nonatomic,strong) DeviceAlarmStatistics *efairyproject_device_alarm_statistics;//
@property(nonatomic,strong) ProjectReportSummary*efairyproject_report_summary;//总结
@end

NS_ASSUME_NONNULL_END
